home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 February / Macworld (1999-02).dmg / Serious Demos / XTension demo / Scripts / DuskSensor#1.Off < prev    next >
Text File  |  1998-07-28  |  210b  |  8 lines

  1. -- this is a dusk sensor going OFF indicating daylight
  2. -- if it's already daylight, ignore
  3.  
  4. if (status of "Its Dark") = true then
  5.     if (status of "Dusk Sensor#2") = false then
  6.         turnoff "Its Dark"
  7.     end if
  8. end if